package com.haoran.dwz.wrapper;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;

/**
 * 分页工具类
 * 分页查询入参条件使用
 * 入参使用
 */
public class PagingWrapper implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "偏移量 0 如果page有值优选取page值")
	private Integer offset = 0;

	@ApiModelProperty(value = "每页大小 默认10")
	private Integer limit = 10;

	@ApiModelProperty(value = "当前第几页 默认 1")
	private Integer page = 1;

	@ApiModelProperty(value = "排序字段;")
	private String sidx;

	@ApiModelProperty(value = "排序方式 ASC, DESC;")
	private String order;

	public final Integer getPage() {
		return page;
	}

	public final void setPage(Integer page) {
		this.page = page;
	}

	public final Integer getOffset() {
		return offset;
	}

	public final void setOffset(Integer offset) {
		this.offset = offset;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getSidx() {
		return sidx;
	}

	public final void setSidx(String sidx) {
		this.sidx = sidx;
	}
}
